package com.strive.village.entity.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
public class ResidentDto implements Serializable {

    @ExcelIgnore // 导出忽略该字段
    private Integer villageId;

    @ExcelProperty(value = "所属乡村", index = 1)
    private String villageName;

    @ExcelProperty(value = "姓名", index = 2)
    private String name;

    @ExcelProperty(value = "年龄", index = 3)
    private Integer age;

    @ExcelProperty(value = "性别", index = 4)
    private String gender;

    @ExcelProperty(value = "职业", index = 5)
    private String occupation;

    @ExcelProperty(value = "联系电话")
    private String contactNumber;
}
